package com.bluesky.javawebbrowser.domain.html.tags.form.input;

import javax.swing.JButton;
import javax.swing.JComponent;

public class Password extends Input {

	public Password() {

		inputType = InputType.PASSWORD;

		attributes.put("type", inputType.toString());
	}

	public Password(Input input) {
		inputType = InputType.PASSWORD;

		copy(input);
	}

	@Override
	public JComponent getComponent() {

		JButton button = new JButton(getValue());

		return button;
	}
}
